<?php

class online_widget extends iKernel{
	function online_widget(){
		$tpl = new Template;
		include("locale/en.php");
		$this->title = $locale['online_title'];
				
		$db = new DB("online");
		$db->setColPrefix("online_");
		$db->select();
		
		$this->content = $locale['online_text1'].$db->numRows().$locale['online_text2'];

		$tpl->title = $this->title;
		$tpl->content = $this->content;
		$tpl->Build("view/modules");
	}

}


?>